﻿using Core;
using Core.Domain.Topics;
using System.Collections.Generic;
namespace Services.Topics
{

    /// <summary>
    /// 主题服务接口
    /// </summary>
    public partial interface ITopicService
    {
        /// <summary>
        /// 删除主题
        /// </summary>
        /// <param name="topic">Topic</param>
        void DeleteTopic(Topic topic);

        /// <summary>
        /// 根据主键获取主题
        /// </summary>
        /// <returns>Topic</returns>
        Topic GetTopicById(int topicId);

        /// <summary>
        /// 根据关键字获取主题
        /// </summary>
        /// <returns>Topic</returns>
        Topic GetTopicBySystemName(string systemName);

        /// <summary>
        /// 获取所有主题
        /// </summary>
        IPagedList<Topic> GetAllTopics(int pageIndex, int pageSize);

        /// <summary>
        /// 新增主题
        /// </summary>
        void InsertTopic(Topic topic);

        /// <summary>
        /// 更新主题
        /// </summary>
        void UpdateTopic(Topic topic);
    }
}
